package com.itheima.pojo;

import java.io.Serializable;

public class Food implements Serializable {
    private Integer id;
    private String code; //编码
    private String name; //食物名称
    private Integer typeId; //食物种类id
    private String type; //食物种类
    private String remark; //食物说明
    private String unit; //食用单位
    private Integer energy; //每百克含能量

    public Food(String code, String name, Integer typeId, String remark, String unit, Integer energy) {
        this.code = code;
        this.name = name;
        this.typeId = typeId;
        this.remark = remark;
        this.unit = unit;
        this.energy = energy;
    }

    public Food() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Integer getEnergy() {
        return energy;
    }

    public void setEnergy(Integer energy) {
        this.energy = energy;
    }
}
